package com.anytrek.demowebservice.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserEntity {

    private Integer id;

    private String name;

    private String password;

    public static UserEntity getUserEntity(Integer id) {
        return new UserEntity(id, "admin", "123456");
    }


    public static List<UserEntity> getUserEntities() {
        UserEntity userEntity1 = new UserEntity(1, "admin", "123456");
        UserEntity userEntity2 = new UserEntity(2, "Tom", "123456");
        UserEntity userEntity3 = new UserEntity(3, "Jerry", "123456");
        UserEntity userEntity4 = new UserEntity(4, "admin", "123456");
        UserEntity userEntity5 = new UserEntity(5, "admin", "123456");
        return Arrays.asList(userEntity1, userEntity2, userEntity3, userEntity4, userEntity5);
    }
}
